'''
Created on Apr 16, 2012

@author: lavang
'''

# New User ( link at Users page)
def xpathNewUser():
    return "//a[contains(text(),'New user')]"

# ComboBox Select avatar
def xpathCbbAvatar():
    return "//select[@id='select_avatar']"

# txt login
def xpathTxtLogin():
    return "//input[@name='login']"

# txt password
def xpathTxtPassword():
    return "//input[@name='password_']"

# txt repeat password
def xpathTxtRePassword():
    return "//input[@name='passrepeat']"

# txt first name
def xpathTxtFirstName():
    return "//input[@name='name']"

# txt last name
def xpathTxtLastName():
    return "//input[@name='surname']"

# txt Email
def xpathTxtEmail():
    return "//input[@name='email']"

# checkbox Active
def xpathChkActive():
    return "//input[@id='activeCheckbox']" 

# text arear Comment
def xpathTxtAreaComment():
    return "//textarea[@name='comments']"

# btn Submit
def xpathBtnSubmit():
    return "//input[@name='submit_personal_details']"

# Combo Usertype
def xpathCbbUserType():
    return "//select[@name='user_type']"

# Combo Language
def xpathCbbLanguage():
    return "//select[@name='languages_NAME']"

# Combo Time zone
def xpathCbbTimeZone():
    return "//select[@name='timezone']"

# txt Select image from PC
def xpathTxtAvatar():
    return ".//*[@id='user_form']/table/tbody/tr[2]/td[2]/input"

# Description
def xpathDescription():
    return ".//*[@id='tinymce']"

# User name
def xpathUser(userName):
    return "//span[contains(text(),'"+userName+"')]"

# User (link at Personal Info, click to link to Users Page)
def xpathLinkUser():
    return "//a[contains(text(),'Users')]"

# Delete button
def xpathDeleteUser(userName):
    return "//span[contains(text(),'"+userName+"')]/../../../td/img[@title='Delete']"

# txt Search
def xpathTxtSearchUser():
    return "//input[@id='0_sortedTable_filter']"